//
//  CheckViewController.m
//  02_Work
//
//  Created by dllo on 16/7/16.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "CheckViewController.h"

@interface CheckViewController ()

@end

@implementation CheckViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton *backButton = [UIButton buttonWithType:UIButtonTypeSystem];
    backButton.frame = CGRectMake(10, 30, 70, 30);
    [backButton setTitle:@"< 返回" forState:UIControlStateNormal];
    [backButton setTitleColor:[UIColor colorWithRed:61.0 / 255 green:160.0 / 255 blue:115.0 / 255 alpha:0.8] forState:UIControlStateNormal];
    backButton.titleLabel.font = [UIFont systemFontOfSize:20];
    [backButton addTarget:self action:@selector(backClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:backButton];
    
    UILabel *checkLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.view.frame.size.width / 2 - 50, 60, 100, 40)];
    checkLabel.text = @"验证手机";
    checkLabel.textAlignment = 1;
    checkLabel.font = [UIFont systemFontOfSize:21];
    [self.view addSubview:checkLabel];
    
    UITextField *phoneTextField = [[UITextField alloc] initWithFrame:CGRectMake(60, 140, self.view.frame.size.width - 120, 40)];
    phoneTextField.placeholder = @"手机号  (仅支持中国大陆号)";
    phoneTextField.font = [UIFont systemFontOfSize:20];
    [self.view addSubview:phoneTextField];
    
    UIView *underPhoneLine = [[UIView alloc] initWithFrame:CGRectMake(30, 190, self.view.frame.size.width - 60, 2)];
    underPhoneLine.backgroundColor = [UIColor grayColor];
    underPhoneLine.alpha = 0.3;
    [self.view addSubview:underPhoneLine];
    
    UITextField *checkTextField = [[UITextField alloc] initWithFrame:CGRectMake(60, 200, self.view.frame.size.width - 220, 40)];
    checkTextField.placeholder = @"验证码";
    checkTextField.font = [UIFont systemFontOfSize:20];
    [self.view addSubview:checkTextField];
    
    UIView *underCheckLine = [[UIView alloc] initWithFrame:CGRectMake(30, 250, self.view.frame.size.width - 60, 2)];
    underCheckLine.backgroundColor = [UIColor grayColor];
    underCheckLine.alpha = 0.3;
    [self.view addSubview:underCheckLine];
    
    UIButton *checkButton = [UIButton buttonWithType:UIButtonTypeSystem];
    checkButton.frame = CGRectMake(self.view.frame.size.width - 160, 205, 100, 30);
    [checkButton setTitle:@"获取验证码" forState:UIControlStateNormal];
    [checkButton setTitleColor:[UIColor colorWithRed:61.0 / 255 green:160.0 / 255 blue:115.0 / 255 alpha:0.8] forState:UIControlStateNormal];
    checkButton.titleLabel.font = [UIFont systemFontOfSize:20];
    [self.view addSubview:checkButton];
    
    UIButton *nextStepButton = [UIButton buttonWithType:UIButtonTypeSystem];
    nextStepButton.frame = CGRectMake(30, 270, self.view.frame.size.width - 60, 40);
    nextStepButton.backgroundColor = [UIColor colorWithRed:61.0 / 255 green:160.0 / 255 blue:115.0 / 255 alpha:0.8];
    [nextStepButton setTitle:@"下一步" forState:UIControlStateNormal];
    [nextStepButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [self.view addSubview:nextStepButton];
    
    UILabel *findKey = [[UILabel alloc] initWithFrame:CGRectMake(30, 330, 195, 30)];
    findKey.text = @"邮箱用户找回密码, 请";
    findKey.textColor = [UIColor grayColor];
//    findKey.layer.borderWidth = 1;
    findKey.font = [UIFont systemFontOfSize:20];
    findKey.alpha = 0.8;
    [self.view addSubview:findKey];
    
    UIButton *clickButton = [UIButton buttonWithType:UIButtonTypeSystem];
    clickButton.frame = CGRectMake(222, 330, 80, 30);
    [clickButton setTitle:@"点击这里" forState:UIControlStateNormal];
    [clickButton setTitleColor:[UIColor colorWithRed:61.0 / 255 green:160.0 / 255 blue:115.0 / 255 alpha:0.8] forState:UIControlStateNormal];
    clickButton.titleLabel.font = [UIFont systemFontOfSize:20];
    [self.view addSubview:clickButton];
    

}

- (void)backClick:(UIButton *)button {
    [self dismissViewControllerAnimated:YES completion:nil];

}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
